/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.mam.model.rbac.domain;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.foreveross.bsl.mongodb.domain.Entity;


/**
 * @description
 * 
 * @author rening
 * @version v1.0
 * 
 * @2013-6-8
 * 
 */
@Document
public class User extends Entity
{

	// @Field("token")
	// private String token;

	@Id
	private String id;

	@Field("username")
	private String username;

	@Field("name")
	private String name;

	@Field("sex")
	private String sex;

	@Field("address")
	private String address;

	@Field("telephone")
	private String telephone;

	@Field("password")
	private String password;

	@Field("status")
	private String status;
	// add by lizhifeng
	@Field("createAt")
	private Date createAt;// 用户创建时间

	public Date getCreateAt()
	{
		return createAt;
	}

	public void setCreateAt(Date createAt)
	{
		this.createAt = createAt;
	}


	/**
	 * @return the id
	 */
	public String getId()
	{
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id)
	{
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName()
	{
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name)
	{
		this.name = name;
	}

	/**
	 * @return the sex
	 */
	public String getSex()
	{
		return sex;
	}

	/**
	 * @param sex
	 *            the sex to set
	 */
	public void setSex(String sex)
	{
		this.sex = sex;
	}

	/**
	 * @return the address
	 */
	public String getAddress()
	{
		return address;
	}

	/**
	 * @param address
	 *            the address to set
	 */
	public void setAddress(String address)
	{
		this.address = address;
	}

	/**
	 * @return the username
	 */
	public String getUsername()
	{
		return username;
	}

	/**
	 * @param username
	 *            the username to set
	 */
	public void setUsername(String username)
	{
		this.username = username;
	}

	public String getPassword()
	{
		return password;
	}

	public void setPassword(String password)
	{
		this.password = password;
	}

	public String getStatus()
	{
		return status;
	}

	public void setStatus(String status)
	{
		this.status = status;
	}

	/**
	 * @return the telephone
	 */
	public String getTelephone()
	{
		return telephone;
	}

	/**
	 * @param telephone
	 *            the telephone to set
	 */
	public void setTelephone(String telephone)
	{
		this.telephone = telephone;
	}

	/**
	 * @return the token
	 */
	// public String getToken() {
	// return token;
	// }

	/**
	 * @param token
	 *            the token to set
	 */
	// public void setToken(String token) {
	// this.token = token;
	// }

}
